package com.et.sale.ticket.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.et.sale.ticket.entity.TicketEntity;

public interface TicketDao {
	
	int addSave(TicketEntity entity);
	
	/**
	 * 列表
	 * @param currentPage
	 * @param pageSize
	 * @return
	 */
	List<TicketEntity> list(@Param("currentPage") int currentPage, @Param("pageSize") int pageSize);

	
	TicketEntity findById(int id);
	
	int updateSave(TicketEntity entity);
	
	int delete(int id );
	
}
